import Vue from "vue";
import router from "./route";
import App from "./App.vue";
import "./service/api";
import "./service/util";
import VueAwesomeSwiper from 'vue-awesome-swiper';

import {
  Grid,
  GridItem,
  Row,
  Col,
  NavBar,
  Icon,
  Tabbar,
  TabbarItem,
  Cell, 
  CellGroup,
  Popup,
  Form,
  Field,
  RadioGroup,
  Radio,
  Picker,
  Button,
  List,
  Area,
  DatetimePicker,
  Calendar,
  Uploader,
  Tag,
  Collapse,
  CollapseItem,
  Step,
  Steps,
  Dialog,
  Tab,
  Tabs,
  Image as VanImage,
  Loading,
  Divider,
  Search,
  Sidebar, SidebarItem,
  PullRefresh,
  Sticky,
  SwipeCell,
  Overlay,
  DropdownMenu,
  DropdownItem
} from "vant";

Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Row);
Vue.use(Col);
Vue.use(NavBar);
Vue.use(Icon);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Popup);
Vue.use(Form);
Vue.use(Field);
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(Picker);
Vue.use(Button);
Vue.use(List);
Vue.use(Area);
Vue.use(DatetimePicker);
Vue.use(Calendar);
Vue.use(Uploader);
Vue.use(Tag);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Step);
Vue.use(Steps);
Vue.use(Dialog);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(VanImage);
Vue.use(Loading);
Vue.use(Divider);
Vue.use(Search);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(PullRefresh);
Vue.use(Sticky);
Vue.use(SwipeCell);
Vue.use(Overlay);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);


Vue.use(VueAwesomeSwiper);

// 注册自定义全局组件
import tabBar from "./components/tab-bar";
import exampleCard from "./components/example-card";

Vue.component(tabBar.name, tabBar);
Vue.component(exampleCard.name, exampleCard);

new Vue({
  el: "#app",
  router,
  render: h => h(App)
});
